//
//  firstViewController.m
//  theCoupleLive
//
//  Created by USER on 2016/12/5.
//  Copyright © 2016年 USER. All rights reserved.
//

#import "firstViewController.h"
#import "registViewController.h"
#import "loginViewController.h"
@interface firstViewController ()

@end

@implementation firstViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBarHidden=YES;
    self.regist.layer.masksToBounds=YES;
    self.regist.layer.cornerRadius=3;
    self.login.layer.masksToBounds=YES;
    self.login.layer.cornerRadius=3;
    [self.regist addTarget:self action:@selector(registAction) forControlEvents:UIControlEventTouchUpInside];
    [self.login addTarget:self action:@selector(loginAction) forControlEvents:UIControlEventTouchUpInside];
    // Do any additional setup after loading the view from its nib.
}

#pragma mark regist
-(void)registAction{
    registViewController *regist=[[registViewController alloc]initWithNibName:@"registViewController" bundle:[NSBundle mainBundle]];
//    UINavigationController *registNa=[[UINavigationController alloc]initWithRootViewController:regist];
    [self.navigationController pushViewController:regist animated:YES];
}

#pragma mark login
-(void)loginAction{
    loginViewController *login=[[loginViewController alloc]initWithNibName:@"loginViewController" bundle:[NSBundle mainBundle]];
//    UINavigationController *loginNa=[[UINavigationController alloc]initWithRootViewController:login];
    [self.navigationController pushViewController:login animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
